package com.rf.richfitwheel.workflow.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Delegation implements Serializable {
    private static final long serialVersionUID = 1L;
    private String id;
    //授权人id
    private String authId;
    //被授权人id
    private String beAuthId;
    //授权类别
    private String authCatagory;
    //授权开始时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime;
    //授权结束时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;

    //查询时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date dealTime;
    //授权原因
    private String reason;
    /**
     * 
     */
    private String delegationType;

    public Delegation(String id, String authId, String beAuthId, String authCatagory, Date startTime, Date endTime, Date dealTime, String reason, String delegationType) {
        this.id = id;
        this.authId = authId;
        this.beAuthId = beAuthId;
        this.authCatagory = authCatagory;
        this.startTime = startTime;
        this.endTime = endTime;
        this.dealTime = dealTime;
        this.reason = reason;
        this.delegationType = delegationType;
    }

    public Delegation() {
        super();
    }

    public Date getDealTime() {
        return dealTime;
    }

    public void setDealTime(Date dealTime) {
        this.dealTime = dealTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAuthId() {
        return authId;
    }

    public void setAuthId(String authId) {
        this.authId = authId;
    }

    public String getBeAuthId() {
        return beAuthId;
    }

    public void setBeAuthId(String beAuthId) {
        this.beAuthId = beAuthId;
    }

    public String getAuthCatagory() {
        return authCatagory;
    }

    public void setAuthCatagory(String authCatagory) {
        this.authCatagory = authCatagory;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getDelegationType() {
        return delegationType;
    }

    public void setDelegationType(String delegationType) {
        this.delegationType = delegationType;
    }

    @Override
    public String toString() {
        return "Delegation{" +
                "id='" + id + '\'' +
                ", authId='" + authId + '\'' +
                ", beAuthId='" + beAuthId + '\'' +
                ", authCatagory='" + authCatagory + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", dealTime=" + dealTime +
                ", reason='" + reason + '\'' +
                ", delegationType='" + delegationType + '\'' +
                '}';
    }
}
